Validating and improving PPG-based algorithms